package com.paic.tpa.data;

import java.util.ArrayList;
import java.util.List;

public class Menu {
	private String id;
	
	private String name;
	
	private String component;
	
	private String path;
	
	private int order;
	
	private List<Menu> children;
	
	public String getId() {
		return this.id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName(){
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getComponent(){
		return this.component;
	}
	
	public void setComponent(String component) {
		this.component = component;
	}
	
	public String getPath(){
		return this.path;
	}
	
	public void setPath(String path) {
		this.path = path;
	}
	
	public int getOrder() {
		return this.order;
	}
	
	public void setOrder(int order) {
		this.order = order;
	}
	
	public List<Menu> getChildren(){
		return this.children;
	}
	
	public void setChildren(List<Menu> children) {
		this.children = children;
	}
	
	public void addChild(Menu menu) {
		if (this.children == null) {
			this.children = new ArrayList<Menu>();
		}
		
		this.children.add(menu);
	}
}
